package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.ProductionReport;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

public interface ProductionReportMapper {

    //多条件分页查询报工单
    ArrayList<ProductionReport> selectProductionReport(ProductionReport productionReport);
    //编辑报工单
    int updateProductionReport(ProductionReport productionReport);
    //确认报工单
    int updateStatus1(Long id);
    //审核通过报工单
    int updateStatus2(Long id);
    //审核不通过报工单
    int updateStatus3(Long id);
    //工具ID查询报工单
    ProductionReport selectById(Long id);
    //删除报工单
    int deleteById(Long id);
    //批量删除报工单
    int batchDelete(@Param("ids") Long[] ids);
}
